package com.dachuang.canjiren.mapper;

import com.dachuang.canjiren.entity.Volunteer;
import com.dachuang.canjiren.entity.Work;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
@Repository
public interface WorkMapper extends BaseMapper<Work> {
    /**
     * 发布工作
     * @param work
     * @return
     */
    int insertWork(Work work);

    /**
     * 工作列表
     * @return
     */
    List<Work> selectWork();
}
